let objs = Object.getOwnPropertyNames(window);
let res = {}
for (let i = 0; i < objs.length; i++) {
    let key = objs[i];
    try{
        res[key] = Object.getOwnPropertyNames(window[objs[i]].prototype);

    }catch(e) {
        console.log(key ,' is not a object')
    }


}